Skip to main content

Top 50 Interview questions

S.NoProblemLink
1.Two Sumhttps://leetcode.com/problems/two-sum
2.Add Two Numbershttps://leetcode.com/problems/add-two-numbers
3.Longest Substring Without Repeating Charactershttps://leetcode.com/problems/longest-substring-without-repeating-characters
4.Median of Two Sorted Arrayshttps://leetcode.com/problems/median-of-two-sorted-arrays
5.Longest Palindromic Substringhttps://leetcode.com/problems/longest-palindromic-substring
6.Regular Expression Matchinghttps://leetcode.com/problems/regular-expression-matching
7.Container With Most Waterhttps://leetcode.com/problems/container-with-most-water
8.3Sumhttps://leetcode.com/problems/3sum
9.Letter Combinations of a Phone Numberhttps://leetcode.com/problems/letter-combinations-of-a-phone-number
10.Remove Nth Node From End of Listhttps://leetcode.com/problems/remove-nth-node-from-end-of-list
11.Valid Parentheseshttps://leetcode.com/problems/valid-parentheses
12.Merge Two Sorted Listshttps://leetcode.com/problems/merge-two-sorted-lists
13.Generate Parentheseshttps://leetcode.com/problems/generate-parentheses
14.Merge k Sorted Listshttps://leetcode.com/problems/merge-k-sorted-lists
15.Longest Valid Parentheseshttps://leetcode.com/problems/longest-valid-parentheses
16.Search in Rotated Sorted Arrayhttps://leetcode.com/problems/search-in-rotated-sorted-array
17.Find First and Last Position of Element in Sorted Arrayhttps://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
18.Combination Sumhttps://leetcode.com/problems/combination-sum
19.First Missing Positivehttps://leetcode.com/problems/first-missing-positive
20.Trapping Rain Waterhttps://leetcode.com/problems/trapping-rain-water
21.Jump Game IIhttps://leetcode.com/problems/jump-game-ii
22.Permutationshttps://leetcode.com/problems/permutations
23.Rotate Imagehttps://leetcode.com/problems/rotate-image
24.Group Anagramshttps://leetcode.com/problems/group-anagrams
25.Maximum Subarrayhttps://leetcode.com/problems/maximum-subarray
26.Jump Gamehttps://leetcode.com/problems/jump-game
27.Merge Intervalshttps://leetcode.com/problems/merge-intervals
28.Unique Pathshttps://leetcode.com/problems/unique-paths
29.Minimum Path Sumhttps://leetcode.com/problems/minimum-path-sum
30.Climbing Stairshttps://leetcode.com/problems/climbing-stairs
31.Edit Distancehttps://leetcode.com/problems/edit-distance
32.Sort Colorshttps://leetcode.com/problems/sort-colors
33.Minimum Window Substringhttps://leetcode.com/problems/minimum-window-substring
34.Subsetshttps://leetcode.com/problems/subsets
35.Word Searchhttps://leetcode.com/problems/word-search
36.Largest Rectangle in Histogramhttps://leetcode.com/problems/largest-rectangle-in-histogram
37.Maximal Rectanglehttps://leetcode.com/problems/maximal-rectangle
38.Binary Tree Inorder Traversalhttps://leetcode.com/problems/binary-tree-inorder-traversal
39.Unique Binary Search Treeshttps://leetcode.com/problems/unique-binary-search-trees
40.Validate Binary Search Treehttps://leetcode.com/problems/validate-binary-search-tree
41.Symmetric Treehttps://leetcode.com/problems/symmetric-tree
42.Binary Tree Level Order Traversalhttps://leetcode.com/problems/binary-tree-level-order-traversal
43.Maximum Depth of Binary Treehttps://leetcode.com/problems/maximum-depth-of-binary-tree
44.Construct Binary Tree from Preorder and Inorder Traversalhttps://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
45.Flatten Binary Tree to Linked Listhttps://leetcode.com/problems/flatten-binary-tree-to-linked-list
46.Best Time to Buy and Sell Stockhttps://leetcode.com/problems/best-time-to-buy-and-sell-stock
47.Binary Tree Maximum Path Sumhttps://leetcode.com/problems/binary-tree-maximum-path-sum
48.Longest Consecutive Sequencehttps://leetcode.com/problems/longest-consecutive-sequence
49.Single Numberhttps://leetcode.com/problems/single-number
50.Copy List with Random Pointerhttps://leetcode.com/problems/copy-list-with-random-pointer